<?
	include("../model/database.php");
	include("../model/xl_quan_huyen.php");
	$xl_quan_huyen = new xl_quan_huyen();
	$id = $_REQUEST['idTT'];

	$arrQuanHuyen = $xl_quan_huyen->danhSachQuanHuyenTheoTinhThanh($id);
	$data = array();
	$n = count($arrQuanHuyen);
	if($n>0){
		foreach($arrQuanHuyen as $row){
			$maQuan = $row['MaQuanHuyen'];
			$tenQuan = $row['TenQuanHuyen'];
			$data[] = array("TenQuan"=>$tenQuan,"MaQuan"=>$maQuan);
		}
	}
	echo json_encode($data);
?>